http://www.sintef.no/projectweb/mrst/tutorials/flow-solver-tutorial/
In [1]:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
# For importing pyrst without proper installation
import sys
sys.path.append("/home/shomea/a/andreros/pyrst")
import pyrst
import pyrst.io
import pyrst.utils
In [3]:
nx, ny, nz = 10, 10, 4
G = pyrst.gridprocessing.cartGrid([nx, ny, nz])
print(G)
In [5]:
pyrst.gridprocessing.computeGeometry(G)
print(G)